<template>
  <!-- 出价弹出 框 -->
  <a-modal
    :closable="false"
    :visible="showOfferVisible"
    :footer="null"
    ok-text="确认修改"
  >
    <div class="price_content">
      <div class="field_container">
        <div class="field_item">
          <div class="field_item_label">点评出价：</div>
          <div class="field_item_content flex">
            <div>
              <a-input-number :min="0" />
              <span class="price_unit">元</span>
            </div>
            <div style="margin-left: 50px;">今日低价<span class="price_unit">2 元</span></div>
          </div>
        </div>
        <div class="field_item">
          <div class="field_item_label">今日建议出价：</div>
          <ol class="field_item_content">
            <li v-for="(item, index) in prices" :key="index">
              <span>{{ item }}</span>
              <a @click="useThisPrice(index)">使用该出价</a>
            </li>
          </ol>
        </div>
      </div>
      <div class="field_container">
        <div class="field_item">
          <div class="field_item_label">美团出价：</div>
          <div class="field_item_content flex">
            <div>
              <a-input-number :min="0" />
              <span class="price_unit">元</span>
            </div>
            <div style="margin-left: 50px;">今日低价<span class="price_unit">2 元</span></div>
          </div>
        </div>
        <div class="field_item">
          <div class="field_item_label">今日建议出价：</div>
          <ol class="field_item_content">
            <li v-for="(item, index) in prices" :key="index">
              <span>{{ item }}</span>
              <a @click="useThisPrice(index)">使用该出价</a>
            </li>
          </ol>
        </div>
      </div>
      <a-row type="flex" justify="center">
        <a-col>
          <a-button @click="onCancel">取消</a-button>
          <a-button @click="onSubmit" type="primary">确定</a-button>
        </a-col>
      </a-row>
    </div>
  </a-modal>
</template>

<script>
export default {
  name: 'OfferPriceModel',
  data () {
    return {
      showOfferVisible: false,
      prices: ['第一位 ￥13.23/次', '第4位 ￥13.23/次', '第7位 ￥13.23/次']
    }
  },
  created () {},
  methods: {
    // 出价 确认修改
    onSubmit () {
      this.showOfferVisible = false
    },
    // 出价 取消
    onCancel () {
      this.showOfferVisible = false
    },
    useThisPrice (index) {

    }
  }
}
</script>

<style lang="less" scoped>
.price_content {
  .price_unit {
    margin-left: 10px;
  }
  ol {
    padding: 0;
    li {
      width: 200px;
      display: flex;
      justify-content: space-between;
    }
  }
  .ant-row-flex {
    margin: 20px 0;
  }
  .ant-btn-primary {
    margin-left: 20px;
  }
}
</style>
